//
//  PushResult.swift
//  imprint
//
//  Created by 小柠檬🍋 on 2025/1/23.
//

import Foundation

class QiniuResult : Codable {
    var key:String? = nil
    var hash:String? = nil
    var size:String? = nil
    var mimeType:String? = nil
    var url : String? = nil//七牛云接口不会返回

    public func getUrl() -> String {
        if ((url ?? "").isEmpty) {
            return "http://\(QiniuUtils.host)/\(key ?? "")";
           }
           return "";
       }
}
